package com.example.questionexam.model.entity;


import lombok.Data;

import java.math.BigDecimal;

@Data
public class QuestionScore {

    /**
     * 题目id
     */
    private Long id;

    /**
     * 题目设置分值
     */
    private BigDecimal score;

//    public static String toJson(QuestionScore[] questionScores) {
//        StringBuilder s= new StringBuilder("{");
//        for(QuestionScore qs : questionScores) {
//            s.append(String.format("{%s,%s},", qs.getQuestionId().toString(), qs.getScore().toString()));
//        }
//        s.append("}");
//        return s.toString();
//    }
}
